'''
x = int(input("输入一个数："))
y = int(input("输入一个数："))

try:
    z = x / y
    print("result1:%.2f"%z)
    print("%d/%d=%6.2f"%(x,y,z))
except Exception as e:   '将try语句块中的错误打印出来'
    print(e)
else:
    pass
finally:
    del x    '删除变量x'
    del y
    print(x)
    print(y)
'''

'''
n = int(input("please put the number:"))
value = 1
if n > 0:
    i = n
    while i > 0:
        if i == 3:
            break;
        elif i == 5:
            i = i - 1
            continue;
        else:
            value = value * i
            print(i)
            i = i - 1
    print("%d!=%d"%(n,value))
else:
    print("!over!")
'''
count = int(input("please input the number count:"))
sumValue = 0
lst0bj = []     
##lst0bj = list()    两种列表语句
countValue = 0

for i in range(1,count+1):
    inputValue = float(input("please input the number:"))
    lst0bj.append(inputValue)
##    将inputValue的值存入list对象
    sumValue = sumValue + inputValue

avgValue = sumValue / count

print(lst0bj)

for var in lst0bj:
    if var < avgValue:
        countValue = countValue + 1

print("sum:%.2f"%(sumValue))
print("avg:%.2f"%(avgValue))
print("count:%.2f"%(countValue))
